package com.javaeye.dengyin2000.fgcrawler;

import java.io.Serializable;
import java.util.Set;
import java.util.HashSet;

/**
 * User: deng.yin (deng.yin@gmail.com)
 * Date: 2009-9-27
 * Time: 21:23:13
 */
public class Resource implements Serializable{

    private String fromUrl;
    private String resourceUrl;
    private Set<String> categories = new HashSet<String>();
    private String resourceName;
    private String operationDescription;
    private String picUrl;

    public String getFromUrl() {
        return fromUrl;
    }

    public void setFromUrl(String fromUrl) {
        this.fromUrl = fromUrl;
    }

    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }

    public Set<String> getCategories() {
        return categories;
    }

    public void setCategories(Set<String> categories) {
        this.categories = categories;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getOperationDescription() {
        return operationDescription;
    }

    public void setOperationDescription(String operationDescription) {
        this.operationDescription = operationDescription;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    @Override
    public String toString() {
        return "Resource{" +
                "resourceUrl='" + resourceUrl + '\'' +
                ", resourceName='" + resourceName + '\'' +
                '}';
    }

}
